package com.ruoyi.chat.request.chat;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * 与助手聊天请求体
 *
 * @author 陶杰
 */
@Data
public class CompletionRequest {

    @JsonProperty
    @Size(min = 0, max = 200, message = "提问长度不能超过200个字符")
    private String question;

    @JsonProperty
    private String stream;

    @JsonProperty(value = "session_id")
    private String sessionId;

    @JsonProperty(value = "user_id")
    private String userId;

    @JsonProperty(value = "chat_id")
    private String chatId;

}
